package decorator.b;

import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;

public class LowercaseInputStream extends FilterInputStream {

	protected LowercaseInputStream(InputStream in) {
		super(in);
	}

	@Override
	public int read() throws IOException {

		int data = super.read();
		if (data != -1) {
			data = Character.toLowerCase(data);
		}
		
		return data;
	}


}
